package com.gkd.mapper;

import com.gkd.pojo.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Component
@Transactional
@Repository
public interface LoginUserMapper {

    @Select("select * from mybatis.mdf_login")
    List<LoginUser> queryLoginUser();

    @Select("select * from mybatis.mdf_login where name = #{name}")
    List<LoginUser> querySameNameLoginUser(String name);

}
